package asteroids.model.programs.expression;

import asteroids.model.programs.type.DoubleType;

public class Substraction extends ComposedFunction {

	public Substraction(int line, int column, E left, E right) {
		super(line, column, left, right);
	}	
	
	@Override
	public DoubleType getValue() {
		return new DoubleType(((DoubleType) getLeft().getValue()).getValue() - ((DoubleType)getRight().getValue()).getValue());
	}

}
